package org.example.myleet.p517;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(-1 == solution.findMinMoves(new int[]{0,2,0}));
        Assert.isTrue(2 == solution.findMinMoves(new int[]{0,3,0}));
        Assert.isTrue(3 == solution.findMinMoves(new int[]{1,0,5}));
        Assert.isTrue(0 == solution.findMinMoves(new int[]{0,0,0}));
        Assert.isTrue(0 == solution.findMinMoves(new int[]{1}));
        Assert.isTrue(8 == solution.findMinMoves(new int[]{0,0,11,5}));
        Assert.isTrue(7 == solution.findMinMoves(new int[]{0,11,5,0}));
        Assert.isTrue(8 == solution.findMinMoves(new int[]{0,0,10,6}));
        Assert.isTrue(6 == solution.findMinMoves(new int[]{0,10,0,6}));
        Assert.isTrue(8 == solution.findMinMoves(new int[]{0,11,0,0,7,0}));
        Assert.isTrue(5 == solution.findMinMoves(new int[]{8,3,0,0,7,0}));
        Assert.isTrue(2 == solution.findMinMoves(new int[]{4,0,0,4}));
        Assert.isTrue(4 == solution.findMinMoves(new int[]{0,0,4,0,5,0,5,0,4}));
    }
}
